﻿package  {
	import flash.display.MovieClip;
	import flash.geom.Point;
	
	public class PitTile extends Tile{
		
		public var _player:Player
		
		public function PitTile(aX:int,aY:int,aWidth:int,aHeight:int,aPlayer:Player){
			super(aX,aY,aWidth,aHeight);
			_player = aPlayer;
		}
		override public function CollisionCheck(locX:int, locY:int):Boolean{
			
			if(hitTestPoint(_player.x,_player.y))
			{
				_player.x = _player.EntranceX;
				_player.y = _player.EntranceY;
			}
			return false;
		}
		
	}
	

	
}
